package com.tinkerapps.protocols.ssdp;

/**
 * Class representing device on network discovered with SSDP
 */
public class SSDPDevice {

	private final String location;
	private final String id;
	
	/**
	 * Constructor
	 * @param id Device ID
	 * @param location Device location URL
	 */
	public SSDPDevice(String id, String location) {
		if (id == null)
			throw new IllegalArgumentException("argument 'id' is null");
		
		this.location = location;
		this.id = id;
	}
	
	/**
	 * Get device location URL
	 * @return Location URL
	 */
	public String getLocationURL() {
		return location;
	}
	
	/**
	 * Get device ID
	 * @return Device ID
	 */
	public String getId() {
		return id;
	}
}
